home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
TASMSWAN.ZIP
/
TABLE.ASM
< prev
next >
Wrap
Assembly Source File
|
1989-07-17
|
485b
|
30 lines
%TITLE "Table processing Demo"
IDEAL
DOSSEG
MODEL small
STACK 256
DATASEG
;-----------------------------------------------------------------------
; indices 0,1,2,3, 4, 5, 6, 7, 8, 9
;-----------------------------------------------------------------------
table db 0,1,4,9,16,25,36,49,64,81
CODESEG
Start:
mov ax,@data
mov ds,ax
mov bx,offset table
mov cx,9
@@10:
mov al,cl
xlat
loop @@10
Exit:
mov ax,04C00h
int 21h
END Start